
const main = {
    state: {
        progressNum: 0,
        progressShow: false,
    },
    actions: {
        setProgressNum(state: {progressNum: number}, value: number) {
            state.progressNum = value
        },
        setProgressShow(state: {progressShow: boolean}, value: boolean) {
            state.progressShow = value
        }
    } as any,
    actionsName: {} as any
}

// 遍历获取actionsName
for(const key in main.actions) {
    main.actionsName[key] = key
}

export default main